package com.zhang;

import com.zhang.common.config.GlobalConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * ngrok服务端
 * @author zhanghao
 */
public class NgrokServer {
    /**
     * 日志对象
     */
    static private Logger log = LoggerFactory.getLogger(NgrokServer.class);

    public static void main(String[] args) {
        //初始化配置
        GlobalConfig.init("server.properties");
        //启动tcp 和 http  服务
        //tcp用来进行服务端和客户端通信
        //http暴露端口用来访问 指定映射的域名
        TCPServer tcpServer = new TCPServer();
        HttpServer httpServer = new HttpServer();
        httpServer.startHttpServer();
        tcpServer.start();
    }
}
